﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using DapperExtensions.Mapper;
namespace LS.Entitys
{
    /// <summary>
    /// 新闻分类
    /// </summary>
    [Table("cms_news_category")]
    public class CmsNewsCategoryEntity:EntityBaseDateDel
    {

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? CategorySeq { get; set; }
        /// <summary>
        /// 状态 0未发布 1已发布
        /// </summary>
        public int? CategoryStatus { get; set; }

        /// <summary>
        /// 父级菜单
        /// </summary>

        public long ParentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }


    }
    public class CmsNewsCategoryMapper : ClassMapper<CmsNewsCategoryEntity>
    {
        public CmsNewsCategoryMapper()
        {
            Table("cms_news_category");
            AutoMap();
        }
    }
}
